cmake_minimum_required(VERSION 3.0.0)
project(infra VERSION 0.1.0)

include(GoogleTest)

add_compile_options(-O0 -g)
set(CMAKE_INSTALL_PREFIX "")


include_directories(
${PROJECT_SOURCE_DIR}/common/include
)

add_subdirectory(
${PROJECT_SOURCE_DIR}/user/src
)

add_executable(infra_test
${PROJECT_SOURCE_DIR}/test/infra_u_tiny_block_test.cpp
${PROJECT_SOURCE_DIR}/test/infra_u_list_test.cpp
${PROJECT_SOURCE_DIR}/test/infra_u_queue_test.cpp
${PROJECT_SOURCE_DIR}/test/infra_u_test_main.cpp
)

target_link_libraries(infra_test
infra_lib
gtest
)